package com.example.yyj.Service;


import com.example.yyj.Entity.User;
import com.example.yyj.Impl.UserImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService implements  UserImpl {
    @Resource
    UserImpl userimpl;

    /**
     * 用户登录
     * @param Number 账号
     * @param Pwd  密码
     * @return
     */
    @Override
    public User login(String Number, String Pwd ){
    return  userimpl.login(Number,Pwd);
}

    /**
     * 邮箱登录
     * @param EmailAddress
     * @return
     */
    @Override
    public User getUserByEmail(String EmailAddress) {
        return userimpl.getUserByEmail(EmailAddress);
    }

    /**
     * 指纹登录
     * @param fingerPrintId
     * @return
     */
    @Override
    public User fingerprintLogin(String fingerPrintId) {
        return userimpl.fingerprintLogin(fingerPrintId);
    }
}
